.class Lrexsee/device/RexseeScreen$3;
.super Ljava/lang/Object;
.source "RexseeScreen.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/device/RexseeScreen;->setScreenBrightness(IZ)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/device/RexseeScreen;

.field private final synthetic val$brightness:I


# direct methods
.method constructor <init>(Lrexsee/device/RexseeScreen;I)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/device/RexseeScreen$3;->this$0:Lrexsee/device/RexseeScreen;

    iput p2, p0, Lrexsee/device/RexseeScreen$3;->val$brightness:I

    .line 196
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .prologue
    .line 199
    iget-object v2, p0, Lrexsee/device/RexseeScreen$3;->this$0:Lrexsee/device/RexseeScreen;

    # getter for: Lrexsee/device/RexseeScreen;->mContext:Landroid/content/Context;
    invoke-static {v2}, Lrexsee/device/RexseeScreen;->access$0(Lrexsee/device/RexseeScreen;)Landroid/content/Context;

    move-result-object v2

    check-cast v2, Landroid/app/Activity;

    invoke-virtual {v2}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v1

    .line 200
    .local v1, "window":Landroid/view/Window;
    invoke-virtual {v1}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    .line 201
    .local v0, "lp":Landroid/view/WindowManager$LayoutParams;
    iget v2, p0, Lrexsee/device/RexseeScreen$3;->val$brightness:I

    int-to-float v2, v2

    invoke-static {v2}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Float;->floatValue()F

    move-result v2

    const v3, 0x3b808081

    mul-float/2addr v2, v3

    iput v2, v0, Landroid/view/WindowManager$LayoutParams;->screenBrightness:F

    .line 202
    invoke-virtual {v1, v0}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    .line 203
    return-void
.end method
